package com.example.demo.util;

public class UserContext {
    private static final ThreadLocal<Long> user = new ThreadLocal<>();

    public static Long getUser() {
        return user.get();
    }

    public static void setUser(Long Id) {
        user.set(Id);
    }
}
